import { createSSRApp } from "vue"
import App from "./App.vue"
import { createI18n } from "vue-i18n"
import uviewPlus from 'uview-plus'

import { i18nConfig } from "../locale"

console.log("i18nConfig_:", i18nConfig)

const i18n = createI18n(i18nConfig)
export function createApp() {
  const app = createSSRApp(App)
  app.use(i18n)
  app.use(uviewPlus)
  return {
    app,
  };
}
